/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.ndx.majick.properties.impl;

import java.beans.PropertyChangeSupport;

import org.ndx.majick.properties.ComparableProperty;

/**
 *
 * @author Maison
 */
public class DefaultComparableProperty<Type extends Comparable<Type>> extends DefaultProperty<Type> implements ComparableProperty<Type> {
    public DefaultComparableProperty(Class<? extends Type> type, String name, PropertyChangeSupport support) {
        super(type, name, support);
    }

    public DefaultComparableProperty(Class<? extends Type> type, String name, PropertyChangeSupport support, Type value) {
        this(type, name, support);
        set(value);
    }
    
    public int compareTo(ComparableProperty<Type> o) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
